import request from '@/utils/request'

// 查询商户账户信息列表
export function listMerchantInfo(query) {
  return request({
    url: '/account/merchantInfo/list',
    method: 'get',
    params: query
  })
}

// 查询商户账户信息详细
export function getMerchantInfo(id) {
  return request({
    url: '/account/merchantInfo/' + id,
    method: 'get'
  })
}

// 新增商户账户信息
export function addMerchantInfo(data) {
  return request({
    url: '/account/merchantInfo',
    method: 'post',
    data: data
  })
}

// 修改商户账户信息
export function updateMerchantInfo(data) {
  return request({
    url: '/account/merchantInfo',
    method: 'put',
    data: data
  })
}

// 删除商户账户信息
export function delMerchantInfo(id) {
  return request({
    url: '/account/merchantInfo/' + id,
    method: 'delete'
  })
}
